package com.xfsg.core.log.logger;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author ZhangYi
 * @Classname XfLogger
 * @Description TODO
 * @Date 2021/12/28 9:49
 */
@Slf4j
public class PitayaLogger implements InitializingBean {

    @Value("${spring.application.name}")
    private String serviceId;


    @Override
    public void afterPropertiesSet() throws Exception {
        log.info(serviceId + ": Pitaya Logger init success!");
    }

    public String getServiceId() {
        return serviceId;
    }
}
